package com.bbx.taxi.client.Task;

import android.app.Activity;
import android.util.Log;

import com.bbx.api.sdk.Config;
import com.bbx.api.sdk.model.passanger.CouponCountBuild;
import com.bbx.api.sdk.model.passanger.OrderSubmitBuild;
import com.bbx.api.sdk.model.passanger.UsableSaleBuild;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.passeger.conn.CouponCountNet;
import com.bbx.api.sdk.net.passeger.conn.UsableSaleNet;
import com.bbx.taxi.client.Bean.Value;
import com.bbx.taxi.client.MyApplication;
import com.bbx.taxi.client.Bean.Message.ObserverListener.DATA_TYPE;

/** 
 * @Path com.bbx.taxi.client.Task.MyUsableSaleTask.java
 * @Author 严旭文
 * @Date 2016-11-22 上午11:51:09
 * @Company 蓝海（福建）信息技术有限公司
 * @Description
 * 下单立减
 */
public class MyUsableSaleTask extends BaseTask{
    public DATA_TYPE TYPE=DATA_TYPE.USABLESALE;
    //注意获取立减活动的参数跟提单一模一样，所以我们直接使用OrderSubmitBuild
//    private UsableSaleBuild mUsableSaleBuild;
    private OrderSubmitBuild mOrderSubmitBuild;
	public MyUsableSaleTask(Activity context,OrderSubmitBuild mOrderSubmitBuild) {
		super(context);
		this.mOrderSubmitBuild=mOrderSubmitBuild;
	}
	@Override
	public boolean isShow() {
		return false;
	}

	@Override
	public boolean isReturnString() {
		return false;
	}
	@Override
	public boolean condition() {
		// TODO Auto-generated method stub
		return true;
	}
	@Override
	public void request() {
		setType(TYPE,mOrderSubmitBuild);
	}
	@Override
	public void success(int status,Object object) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void failed(int status, String msg,String message) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public BaseNetwork getBaseNetwork() {
		return new UsableSaleNet(context);
	}

}
